package cn.ycc1.change;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ycc
 * @date 2024/6/2
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        Letter letter = (Letter) applicationContext.getBean("letter");
        System.out.println(letter.change());
    }
}
